/** 
 * @memo 简化创建ajax方法 
 * @author lic
 * @sample 粘贴用
 
 	添加参数
 	Ajax.add({
	 	success: function(response,options){
	 	
	 	},
	 	failure: function(){
	 	
	 	},
	 	params:{
	 		Constant_DataSource_:'',
	 		Constant_TableName_:'',
			Is_Ajax_:'true',
			表字段.. 		
	 	}
	})
 	
 	修改参数
 	Ajax.update({
	 	success: function(response,options){
	 	
	 	},
	 	failure: function(){
	 	
	 	},
	 	params:{
	 		Constant_DataSource_:'',
	 		Constant_TableName_:'',
	 		Constant_PK_:'',
			Is_Ajax_:'true',
			表字段.. 		
	 	}
	})
	
 	删除参数
 	Ajax.del({
	 	success: function(response,options){
	 	
	 	},
	 	failure: function(){
	 	
	 	},
	 	params:{
	 		Constant_DataSource_:'',
	 		Constant_TableName_:'',
	 		Constant_PK_:'',
			Is_Ajax_:'true' 		
	 	}
	})
		 
 	查询参数
 	Ajax.query({
	 	success: function(response,options){
	 	
	 	},
	 	failure: function(){
	 	
	 	},
	 	params:{
	 		Constant_DataSource_:'',
	 		Constant_TableName_:'',
	 		Constant_PK_:'',
			Is_Ajax_:'true' 		
	 	}
	})
	
 * @detail 注释
 */
 
function Ajax.add(p){
	Ajax.execute(p,getRootPath()+'/tableInsert.table');
}

function Ajax.del(p){
	Ajax.execute(p,getRootPath()+'/tableRowDelete.table');
}

function Ajax.update(p){
	Ajax.execute(p,getRootPath()+'/tableInsert.table');
}

function Ajax.query(p){
	Ajax.execute(p,getRootPath()+'/tableRowQuery.table');
}

function Ajax.execute(p,url){
	var config = {url: url,method:"post"};
	Ext.apply(config,p);
	Ext.Ajax.request(config);
}